package com.xingbang.service;
import com.xingbang.dao.CheckUnSuccessiveMapper;
import com.xingbang.pojo.CheckUnSuccessive;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CheckUnSuccessiveService {
	@Resource
	private CheckUnSuccessiveMapper checkUnSuccessiveMapper;
	public int deleteByPrimaryKey(Integer checkId) {
		return checkUnSuccessiveMapper.deleteByPrimaryKey(checkId);
	}
	public int insert(CheckUnSuccessive record) {
		return checkUnSuccessiveMapper.insert(record);
	}
	public int insertSelective(CheckUnSuccessive record) {
		return checkUnSuccessiveMapper.insertSelective(record);
	}
	public CheckUnSuccessive selectByPrimaryKey(Integer checkId) {
		return checkUnSuccessiveMapper.selectByPrimaryKey(checkId);
	}
	public int updateByPrimaryKeySelective(CheckUnSuccessive record) {
		return checkUnSuccessiveMapper.updateByPrimaryKeySelective(record);
	}
	public int updateByPrimaryKey(CheckUnSuccessive record) {
		return checkUnSuccessiveMapper.updateByPrimaryKey(record);
	}
	public List<CheckUnSuccessive> selectNeedCheckUserId() {
		return checkUnSuccessiveMapper.selectNeedCheckUserId();
	}
	public int insertOrUpdate(CheckUnSuccessive record) {
		return checkUnSuccessiveMapper.insertOrUpdate(record);
	}
	public int insertOrUpdateSelective(CheckUnSuccessive record) {
		return checkUnSuccessiveMapper.insertOrUpdateSelective(record);
	}
	public int updateBatch(List<CheckUnSuccessive> list) {
		return checkUnSuccessiveMapper.updateBatch(list);
	}
	public int updateBatchSelective(List<CheckUnSuccessive> list) {
		return checkUnSuccessiveMapper.updateBatchSelective(list);
	}
	public int batchInsert(List<CheckUnSuccessive> list) {
		return checkUnSuccessiveMapper.batchInsert(list);
	}
	public int updateByUserIdCheckStatus(CheckUnSuccessive checkUnSuccessive){
		return checkUnSuccessiveMapper.updateByUserIdCheckStatus(checkUnSuccessive);
	}
	
	
	public int updateByUserIds(List<Integer> userIdList,Integer checkStatus){
		return checkUnSuccessiveMapper.updateByUserIds(userIdList,checkStatus);
	}
}


